package cn.itcast.crm.service;

import java.util.List;

import javax.ws.rs.GET;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;

import cn.itcast.crm.domain.Customer;

@Produces("*/*")
public interface CustomerService {
	@GET
	@Path("/noassciationfixedareacustomer")
	@Produces({ "application/xml", "application/json" })
	public List<Customer> findNoAssciation();

	@GET
	@Path("/hasassciationfixedareacustomer/{fixedareaid}")
	@Produces({ "application/xml", "application/json" })
	public List<Customer> findAssciation(
			@PathParam("fixedareaid") String fixedAreaId);

	@PUT
	@Path("/assciationcustomertofixedarea") 
	public void assciationCustomerToFixedArea(
			@QueryParam("fixedAreaId") String fixedAreaId,
			@QueryParam("customerIdStr") String customerIdStr);

}
